package com.dt76.smallloanfrontendservice.controller.xiaohao;

import com.dt76.smallloanfrontendservice.pojo.xiaohao.HLoanProducts;
import com.dt76.smallloanfrontendservice.service.xiaohao.LoanProductService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class HLoanProductController {

    @Resource
    private LoanProductService loanProductService;

    @RequestMapping(value = "/xiaohao/HLoanProducts/qryAllLoanProducts")
    @ResponseBody
    public List<HLoanProducts> qryAllLoanProducts() {
        return loanProductService.qryAllHLoanProduct();
    }
}
